package com.acme.bankapp.domain.bank;

@SuppressWarnings("serial")
public class OverDraftLimitExceededException extends NotEnoughFundsException {

	private Account account;
	
	public OverDraftLimitExceededException(double amount, Account account) {
		super(amount);
		this.account = account;
	}

	public double getMaximumAmountToWithdraw() {
		return account.maximumAmountToWithdraw();
	}
	
}
